
extern "C" __declspec(dllexport) void AniMesh_SetMD2Animation(IAnimatedMeshSceneNode *amsn, unsigned int animation)
{
	amsn->setMD2Animation((EMD2_ANIMATION_TYPE)animation);
}

extern "C" __declspec(dllexport) f32 AniMesh_GetAnimationSpeed(IAnimatedMeshSceneNode *amsn) 
{
	return amsn->getAnimationSpeed();
}
 
extern "C" __declspec(dllexport) s32 AniMesh_GetEndFrame(IAnimatedMeshSceneNode *amsn)  
{
	return amsn->getEndFrame();
}
 
extern "C" __declspec(dllexport) f32 AniMesh_GetFrameNr(IAnimatedMeshSceneNode *amsn)
{
	return amsn->getFrameNr();
}
 
extern "C" __declspec(dllexport) u32 AniMesh_GetJointCount(IAnimatedMeshSceneNode *amsn) 
{
	return amsn->getJointCount();
}

extern "C" __declspec(dllexport) IAnimatedMesh * AniMesh_GetMesh(IAnimatedMeshSceneNode *amsn) 
{
	return amsn->getMesh();
}
	
extern "C" __declspec(dllexport) s32 AniMesh_GetStartFrame(IAnimatedMeshSceneNode *amsn)
{
	return amsn->getStartFrame();
}

extern "C" __declspec(dllexport) bool AniMesh_SetFrameLoop(IAnimatedMeshSceneNode *amsn, s32 begin, s32 end)
{
	return amsn->setFrameLoop(begin, end);
}

extern "C" __declspec(dllexport) void AniMesh_SetAnimationSpeed(IAnimatedMeshSceneNode *amsn, f32 framesPerSecond)
{
	amsn->setAnimationSpeed(framesPerSecond);
}
 
extern "C" __declspec(dllexport) void AniMesh_SetCurrentFrame(IAnimatedMeshSceneNode *amsn, f32 frame)
{
	amsn->setCurrentFrame(frame);
}

extern "C" __declspec(dllexport) void AniMesh_SetMesh(IAnimatedMeshSceneNode *amsn, IAnimatedMesh *mesh)
{
	amsn->setMesh(mesh);
}

extern "C" __declspec(dllexport) void AniMesh_SetTransitionTime(IAnimatedMeshSceneNode *amsn, f32 time)
{
	amsn->setTransitionTime(time);
}